package com.elan.action;

import java.io.IOException;

import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse;
import javax.portlet.PortletException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;

import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.util.PortalUtil;
import com.liferay.util.bridges.mvc.MVCPortlet;

public class CrudApplication extends MVCPortlet {
	public void add(ActionRequest actionRequest, ActionResponse actionResponse)
			throws IOException, PortletException {
		String actionId = ParamUtil.getString(actionRequest, "actionId");
		String userName = ParamUtil.getString(actionRequest, "userName");
		String password = ParamUtil.getString(actionRequest, "password");
		System.out.println("[" + userName + "]");
		actionResponse.setRenderParameter("userName", userName);
		actionResponse.setRenderParameter("password", password);
		// TODO Auto-generated method stub
		super.processAction(actionRequest, actionResponse);
	}
}
